import QtQuick 2.0
import VPlay 2.0

// is shown at game start and shows the maximum highscore and a button for starting the game
SceneBase {

  onBackPressed: {
    window.state = "main"
  }

  // this allows navigation through key presses
  Keys.onReturnPressed: {
    window.state = "main"
  }

  // use the hd-graphics right now with 649x960 resolution, because it was faster during development
  // in the end, a MultiResolutionImage should be used and 3 different formats of the image provided (-sd, -hd and -hd2)!  
  MultiResolutionImage {
    source: "../assets/img/gameover_background.png"
    anchors.centerIn: parent
  }

  Column {
    anchors.horizontalCenter: parent.horizontalCenter
    y: 110

    MenuText {
      text: "Credits"
      font.pixelSize: 35
    }

    Item {
      width: 1
      height: 35
    }

//    MenuText {
//      text: "Design:"
//    }

//    MenuText {
//      text: "www.kenney.nl"
//    }

    Item {
      width: 1
      height: 15
    }

    MenuText {
      text: "Sound:"
    }

    MenuText {
      text: "\"Purple Hills\""
    }

    MenuText {
      text: "(playonloop.com)"
    }

     MenuText {
      text: "Proudly developed by"
    }

    MenuText {
      text: "Lorenz Lösch and Michael Schöllhammer"
    }

    MenuText {
      text: "with"
    }

    MenuText {
      text: "V-Play Game Engine"
    }

  }

  MenuButton {
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.bottom: parent.bottom
    anchors.bottomMargin: 30

    text: "Back"
    onClicked: window.state = "main"
  }
}
